package com.zhaotianhao.serviceorder.api;

import com.zhaotianhao.serviceorder.dto.OrderDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author Z-7
 * @Date 2022/4/30
 */
@FeignClient(name = "service-stock",path = "/skuStock")
public interface StockApi {
    @PostMapping("getStockBySkuIds")
    List<Long> getStockBySkuIds(@RequestBody OrderDto orderDto);

    @PostMapping("updateStockBySkuIds")
    Boolean updateStockBySkuIds(@RequestBody OrderDto orderDto);
}
